package com.leo.stockmarket.util;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author 890231 lxj
 * @version 1.0
 * @date 2020/8/18 15:44
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface UUIDGen {
    UUIDGen.GenerationType requireType() default UUIDGen.GenerationType.REQUIRED_NULL;

    public static enum GenerationType {
        REQUIRED_NULL,
        REQUIRED_NEW;

        private GenerationType() {
        }
    }
}

